
package com.scalar.chiptrack.users.forms;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;

import com.scalar.chiptrack.ChipTrackActionForm;

public class AdapterSetupForm extends ChipTrackActionForm {

    private String[] selectedFabLocations;
    private String[] selectedWaferStoreLocations;
    private String[] selectedSortLocations;
    private String[] selectedDieBankLocations;
    private String[] selectedAssemblyLocations;
    private String[] selectedTestLocations;
    private String[] selectedClassStoreLocations;
    private String[] selectedMarkAndPackLocations;
    private String[] selectedFinishedGoodsLocations;
    
    public String[] getSelectedFabLocations()
    {
        return selectedFabLocations;
    }
    
    public void setSelectedFabLocations(String[] selectedFabLocations)
    {
        this.selectedFabLocations = selectedFabLocations;
    }
    
    public String[] getSelectedWaferStoreLocations()
    {
        return selectedWaferStoreLocations;
    }
    
    public void setSelectedWaferStoreLocations(String[] selectedWaferStoreLocations)
    {
        this.selectedWaferStoreLocations = selectedWaferStoreLocations;
    }
    
    public String[] getSelectedSortLocations()
    {
        return selectedSortLocations;
    }
    
    public void setSelectedSortLocations(String[] selectedSortLocations)
    {
        this.selectedSortLocations = selectedSortLocations;
    }
    
    public String[] getSelectedDieBankLocations()
    {
        return selectedDieBankLocations;
    }
    
    public void setSelectedDieBankLocations(String[] selectedDieBankLocations)
    {
        this.selectedDieBankLocations = selectedDieBankLocations;
    }
    
    public String[] getSelectedAssemblyLocations()
    {
        return selectedAssemblyLocations;
    }
    
    public void setSelectedAssemblyLocations(String[] selectedAssemblyLocations)
    {
        this.selectedAssemblyLocations = selectedAssemblyLocations;
    }
    
    public String[] getSelectedTestLocations()
    {
        return selectedTestLocations;
    }
    
    public void setSelectedTestLocations(String[] selectedTestLocations)
    {
        this.selectedTestLocations = selectedTestLocations;
    }
    
    public String[] getSelectedClassStoreLocations()
    {
        return selectedClassStoreLocations;
    }
    
    public void setSelectedClassStoreLocations(String[] selectedClassStoreLocations)
    {
        this.selectedClassStoreLocations = selectedClassStoreLocations;
    }
    
    public String[] getSelectedMarkAndPackLocations()
    {
        return selectedMarkAndPackLocations;
    }
    
    public void setSelectedMarkAndPackLocations(String[] selectedMarkAndPackLocations)
    {
        this.selectedMarkAndPackLocations = selectedMarkAndPackLocations;
    }
    
    public String[] getSelectedFinishedGoodsLocations()
    {
        return selectedFinishedGoodsLocations;
    }
    
    public void setSelectedFinishedGoodsLocations(String[] selectedFinishedGoodsLocations)
    {
        this.selectedFinishedGoodsLocations = selectedFinishedGoodsLocations;
    }
    
     public ActionErrors validate(ActionMapping mapping,
                                 HttpServletRequest request) {

        ActionErrors errors = new ActionErrors();

        //if ((vendorName == null) || (vendorName.length() < 1))
        //    errors.add("Vendor", new ActionError("error.vendor name.required"));

        return errors;

    }
     
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        //nothing to doooo
    }
}